package com.yunxin.admin.system.infra.persistence.converter;

import com.yunxin.admin.system.domain.model.dept.Dept;
import com.yunxin.admin.system.infra.persistence.entity.SysDeptDO;
import org.mapstruct.Mapper;

/**
 * @author zero°
 * @since 2023-07-11
 */
@Mapper(componentModel = "spring")
public interface DeptConverter {


    /**
     * do 转 entity
     * @param sysDeptDO sysDeptDO
     * @return Dept
     */
    Dept toDept(SysDeptDO sysDeptDO);

    /**
     * entity 转 do
     * @param entity entity
     * @return SysDictDO
     */
    SysDeptDO formDept(Dept entity);
}
